// include dependencies
var express = require("express");
var proxy = require("http-proxy-middleware");

var app = express();

app.use("/api", proxy({
  target: "ydnqy.suoluomei.com/index.php?s=/Wechat/test",
  changeOrigin: true,
  pathRewrite: {
    '^/api': ''
  }
}));

app.listen(3000);